package com.base.springboot.starter.rocketmq.autoconfigure;

import com.base.springboot.starter.rocketmq.service.RockerMqProducerService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author weixiaodong
 * @date 2020年8月19日09:35:31
 */
@Configuration
public class RocketMqAutoConfiguration {
    /**
     * 初始化生产者service
     * @return
     */
    @Bean
    @ConditionalOnClass
    public RockerMqProducerService initProducerService() {
        return new RockerMqProducerService();
    }
}
